home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / cclib / include / time.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  885b  |  64 lines

  1. #ifndef TIME_H
  2. #define TIME_H 1
  3.  
  4.  
  5. struct tm
  6. {
  7. short tm_sec;
  8. short tm_min;
  9. short tm_hour;
  10. short tm_mday;
  11. short tm_mon;
  12. short tm_year;
  13. short tm_wday;
  14. short tm_yday;
  15. short tm_isdst;
  16. short tm_hsec;
  17. };
  18.  
  19. #ifndef STDIO_H
  20. #include "stdio.h"
  21. #endif
  22.  
  23. #ifndef __TIME_T
  24. #define __TIME_T 1
  25. typedef long time_t;
  26. #endif
  27.  
  28. #ifndef __CLOCK_T
  29. #define __CLOCK_T 1
  30. typedef long clock_t;
  31. #endif
  32.  
  33. #define CLK_TCK 1
  34. #define CLOCK_TCK CLK_TCK
  35.  
  36. #ifdef ANSIC
  37.  
  38. clock_t clock(void);
  39. time_t time(time_t *);
  40. long difftime(time_t,time_t);
  41. time_t mktime(struct tm *);
  42. char *asctime(struct tm *);
  43. char *ctime(time_t *);
  44. struct tm *gmtime(time_t *);
  45. struct tm *localtime(time_t *);
  46. size_t strftime(char *,size_t,char *,struct tm *);
  47.  
  48. #else
  49.  
  50. clock_t clock();
  51. time_t time();
  52. long difftime();
  53. time_t mktime();
  54. char *asctime();
  55. char *ctime();
  56. struct tm *gmtime();
  57. struct tm *localtime();
  58. size_t strftime();
  59.  
  60. #endif
  61.  
  62. #endif
  63.  
  64.